package com.tanhua.dubbo.server.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.bson.types.ObjectId;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.index.Indexed;
import org.springframework.data.mongodb.core.mapping.Document;

import java.io.Serializable;
import java.util.ArrayList;

/**
 * @description:
 * @author: Administrator
 * @date: Created in 2021/2/15 10:30
 * @version: 0.0.1
 * @modified By:
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Document(collection = "recommend_user")
public class RecommendUser implements Serializable {
    private static final long serialVersionUID = -4296017160071130962L;
    @Id
    private ObjectId id;  //主键id
    @Indexed
    private Long userId;  //推荐的用户id
    private Long toUserId;//用户id
    @Indexed
    private Double score; //推荐得分
    private String date;  //日期
}
